<?php 
defined( '_VALID_MOS' ) or die( 'Warning: access denied !' ); 
include_once(dirname(__FILE__) . "/b_video.process.php");
$resultSet = videoClass::getResultSet();
?>
<div id="box_video">
	<div id="sub_box_video">
		<div class="bg_tt_right"><div class="bg_tt_left"><div class="bg_tt"><div class="text_tt">VIDEO CLIP</div></div></div></div>
		<div id="sub_box_video1">
			<div class="ct_right">
				<div class="ct_left">
					<div class="ct">
					<div id="preview"></div>
						<?php if($row = $resultSet->fetch()){ ?>
						<script type="text/javascript">
							function play(url, img){
								document.getElementById("preview").innerHTML = '<embed src="/Web_pgdomon/file_upload/video/flv_player.swf" width="216" height="200" allowscriptaccess="always" allowfullscreen="true" flashvars="file='+ url +'&autostart=false&image='+ img +'" />';
							}
							play('<?php echo $row["file_path"]; ?>', '<?php echo $row["image_path"]; ?>');
						</script>
						<?php } ?>
						<div style="text-align:left;padding-left: 5px;">
						<ul>
						<?php while($row = $resultSet->fetch()){ ?>
							<li> <a href="javascript:void()" onClick="javascript:play('<?php echo $row["file_path"];?>', '<?php echo $row["image_path"];?>')"> - <?php echo $row["title"];?> </a></li>
						<?php } ?>
						</ul>
					</div>
				</div>
				</div>
			</div>
			<div class="bg_bt_right"><div class="bg_bt_left"><div class="bg_bt"><div class="text_bt"></div></div></div></div>
		</div>
	</div>
	<div class="clear"></div>
</div>

<?php unset( $resultSet ); ?>